//
//  UIViewController+RWAdditions.h
//  iconstruction-ios
//
//  Created by Ray on 2023/10/13.
//  Copyright © 2023 81SK. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIViewController (RWAdditions)



@end

@interface UIViewController (RWNavigation)

/// 出栈，删除栈内killClass类型的controller（回到killClass上一级控制器）
/// @param killClass 控制器类型
- (nullable NSArray<__kindof UIViewController *> *)popViewControllerKillClass:(Class)killClass;

/// 出栈，删除栈内killClass类型的controller（回到killClass控制器）
/// @param killClass 控制器类型
/// @param repeat 重复次数
- (nullable NSArray<__kindof UIViewController *> *)popViewControllerToClass:(Class)killClass repeat:(NSInteger)repeat;

@end

NS_ASSUME_NONNULL_END
